package com.cn.wanxi.test;

import javafx.scene.transform.Scale;

import java.util.Scanner;

public class Exam {
    public static void main(String[] args) {
        /**
         * 1.定义分数奖励区间
         * 2.键盘录入
         * 3.提示输入分数信息
         * 4.得到分数
         * 5.将得到的分数和区间进行对比
         * 6.打印不同的结果
         */
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个100以下的分数");
        int cha = 60;
        int liang = 70;
        int zhong = 80;
        int you = 90;
        int te = 100;
        int num = scanner.nextInt();
        if (num < cha) {
            System.out.println("差");
        } else if (num < liang & num >= cha) {
            System.out.println("良");
        } else if (num >= liang & num < zhong) {
            System.out.println("中");
        } else if (num >= zhong & num < you) {
            System.out.println("优");
        } else {
            System.out.println("特");
        }
    }
}
